package com.whcoding.designpatterns.pattern.decorator;

/**
 * @program: spring-boot-learning
 * @description: 抽象构件角色：
 * @author: whcoding
 * @create: 2022-09-20 15:16
 **/
public abstract class DrinkAbstractVO {
	/**
	 * 描述
	 */
	public String desc;

	/**
	 * 价格
	 */
	private float price = 0.0f;

	/**
	 * 计算费用
	 *
	 * @return
	 */
	public abstract float cost();


	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public float getPrice() {
		return price;
	}

	public void setPrice(float price) {
		this.price = price;
	}
}
